﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using DigitalAnts.App_Code.DAL.LogicComponents;
using BAL.Entities;
using DAL.LogicComponents;

namespace DigitalAnts.App_Code.BAL.Components
{
    public class clsCountryBAL
    {
        #region --- select country
        public static DataTable doCountrySelectList()
        {
            try
            {
                return clsCountryDAL.queryGetCountryList();
            }
            catch
            {
                throw;
            }
        }
        #endregion

        #region --- select country by id
        public static DataTable doCountrySelectListById(clsCountry obj)
        {
            try
            {
                return clsCountryDAL.queryGetCountryListById(obj);
            }
            catch
            {
                throw;
            }
        }
        #endregion

        #region --- Add Country by User
        public static bool doAddNewCountry(clsCountry obj)
        {
            try
            {
                return clsCountryDAL.queryAddCountry(obj);
            }
            catch
            {
                throw;
            }
        }
        #endregion

        #region --- Update Country by User
        public static bool doUpdateCountry(clsCountry obj)
        {
            try
            {
                return clsCountryDAL.queryUpdateCountry(obj);
            }
            catch
            {
                throw;
            }
        }
        #endregion

        #region --- Get Country
        // Do user register
        public static DataTable doGetCountry()
        {
            try
            {
                return clsCountryDAL.queryGetCountryList();
            }
            catch
            {
                throw;
            }
        }

        #endregion

        #region --- Get City
        public static DataTable doGetCity(clsCountry obj)
        {
            try
            {
                return clsCityDAL.queryGetCity(obj);
            }
            catch
            {
                throw;
            }
        }

        #endregion

        #region --- check Country exist by User
        public static bool CheckCountryExist(clsCountry obj)
        {
            try
            {
                return clsCountryDAL.CheckCountryExist(obj);
            }
            catch
            {
                throw;
            }
        }
        #endregion
    }
}